package com.venusource.exception;

import lombok.Getter;
import lombok.Setter;

public class BusinessException extends Exception {

  @Getter
  @Setter
  private Integer code;

  public BusinessException() {
    super();
  }

  public BusinessException(Integer code, String message) {
    super(message);
    this.code = code;
  }

  public BusinessException(String message) {
    super(message);
  }

  public BusinessException(String message, Throwable cause) {
    super(message, cause);
  }

  public BusinessException(Throwable cause) {
    super(cause);
  }

  protected BusinessException(Integer code, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
    super(message, cause, enableSuppression, writableStackTrace);
    this.code = code;
  }

  public BusinessException(Integer code, String message, Throwable cause) {
    super(message, cause);
    this.code = code;
  }

  public BusinessException(Integer code, Throwable cause) {
    super(cause);
    this.code = code;
  }
}

